POV-Ray : Newsgroups : povray.programming : Got the grey blues. : Re: Got the grey blues. Server Time
28 Jul 2024 18:23:37 EDT (-0400)
  Re: Got the grey blues.  
From: Nieminen Juha
Date: 26 Aug 1999 03:51:21
Message: <37c4f1f9@news.povray.org>
Edward C. <edw### [at] hotmailcom> wrote:
: Looking through the source for a formula to convert RGB values to grey
: values, I've discovered a number of slightly different formulas, none of
: which will convert RGB <1,1,1> to a grey value of 1.

  Are you sure? The weights for the color components are calculated with:

0.2125*R + 0.7154*G + 0.0721*B

  If we substitute R, G and B with 1's, we get exactly 1.

-- 
main(i,_){for(_?--i,main(i+2,"FhhQHFIJD|FQTITFN]zRFHhhTBFHhhTBFysdB"[i]
):5;i&&_>1;printf("%s",_-70?_&1?"[]":" ":(_=0,"\n")),_/=2);} /*- Warp -*/


Post a reply to this message

Copyright 2003-2023 Persistence of Vision Raytracer Pty. Ltd.